package cn.edu.cxcyzx.util;

import java.util.Collections;
import java.util.Comparator;
import java.util.List;

import cn.edu.cxcyzx.entity.Project;
import cn.edu.cxcyzx.entity.ProjectCheck;

/**
 * 项目信息排序
 * @author daier
 *
 */
public class Sort_projects {
	
	private Sort_projects(){}
	public static void sort_roomId_asc(List<Project> list){
		Collections.sort(list, new Comparator() {
			@Override
			public int compare(Object o1, Object o2) {
				// TODO Auto-generated method stub
				Project pro1=(Project) o1;
				Project pro2=(Project) o2;
				return pro1.getRoomId().compareTo(pro2.getRoomId());
			}
			
		});
		
	}
}
